]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app: Set styleclass on fallback app icons
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 8 Mar 2019 13:10:56 +0000 (14:10 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 8 Mar 2019 15:20:21 +0000 (16:20 +0100)
For window backed apps, create_icon_texture() doesn't return an StIcon
but a generic widget. Set an appropriate style class to make it easier
to apply a specific style only to fallback icons.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1027

src/shell-app.c

index e0b925b5f032103279e382b322fc5dd858bf89bb..7ef3a8156c946e8e5c7161255880a9e7638e93a2 100644 (file)
@@ -215,6 +215,8 @@ window_backed_app_get_icon (ShellApp *app,
                                                          G_OBJECT (window),
                                                          "icon",
                                                          size);
+  st_widget_add_style_class_name (widget, "fallback-app-icon");
+
   return CLUTTER_ACTOR (widget);
 }